package limeirafol.gui.venda;

import lbframework.bean.consultaCampo.LBConsultaCampo;
import lbframework.bean.internalFrame.LBInternalFrame;
import lbframework.bean.mdiFrame.LBMdiFrame;
import lbframework.classe.LBException;
import lbframework.classe.Util;
import limeirafol.bean.BeanVenda;
import limeirafol.gui.Cadastro.ProdutoConsultaGUI;
import limeirafol.gui.MenuGUI;
import limeirafol.remote.cadastro.Situacao;
import limeirafol.remote.venda.PedidoItemVO;

public class PedidoCadastroItemGUI extends LBInternalFrame {

    private PedidoCadastroGUI parentFrame = null;
    private PedidoItemVO oPedidoItem = null;
    private boolean alteracao = false;
    private int index = 0;
    private BeanVenda beanVenda = new BeanVenda();

    public PedidoCadastroItemGUI(LBMdiFrame i_mdiFrame, PedidoCadastroGUI i_parentFrame) throws Exception {
        super(i_mdiFrame);

        initComponents();
        centralizarForm();

        cnsProduto.setTabela("produto");
        cnsProduto.addRetorno("id_tipoproduto", LBConsultaCampo.INT);
        cnsProduto.setFiltro("AND id_situacaocadastro = " + Situacao.ATIVO.getId());

        parentFrame = i_parentFrame;
    }

    @Override
    public void salvar() throws Exception {
        Util.validarCampoTela(this.getCampoObrigatorio());

        boolean achou = false;

        if (!alteracao) {
            for (PedidoItemVO oItem : parentFrame.oPedido.vItem) {
                if (oItem.idProduto == cnsProduto.getId()) {
                    Util.exibirMensagemConfirmar("Produto já lançado. Deseja somá-lo?", getTitle());

                    achou = true;
                    //somar as quantidades
                    oItem.quantidade += txtQuantidade.getInt();
                    oItem.pesoTotal += txtPesoTotal.getDouble();
                    oItem.subTotal += txtValorTotal.getDouble();
                    oItem.precoBanho = txtPrecoBanho.getDouble() * txtQuantidade.getInt();

                    oPedidoItem = oItem;
                    index = parentFrame.oPedido.vItem.indexOf(oPedidoItem);

                    break;
                }
            }

        }

        if (!achou) {
            oPedidoItem.idProduto = cnsProduto.getId();
            oPedidoItem.idTipoProduto = cnsProduto.getInt("id_tipoproduto");
            oPedidoItem.produto = cnsProduto.getDescricao();
            oPedidoItem.pesoTotal = txtPesoTotal.getDouble();
            oPedidoItem.precoVenda = txtPrecoVenda.getDouble();
            oPedidoItem.quantidade = txtQuantidade.getInt();
            oPedidoItem.subTotal = txtValorTotal.getDouble();
            oPedidoItem.precoBanho = txtPrecoBanho.getDouble();
        }

        if (!alteracao && !achou) {
            parentFrame.oPedido.vItem.add(oPedidoItem);
        } else {
            parentFrame.oPedido.vItem.set(index, oPedidoItem);
        }

        parentFrame.exibirProduto();

        getEstadoTelaInicial();

        if (!alteracao) {
            incluir();
        } else {
            sair();
        }
    }

    @Override
    public void incluir() throws Exception {
        verificarAlteracaoTela();

        cnsProduto.clear();
        txtPesoTotal.setText("");
        txtPrecoVenda.setText("");
        txtQuantidade.setText("");
        txtValorTotal.setText("");

        oPedidoItem = new PedidoItemVO();

        cnsProduto.requestFocus();

        getEstadoTelaInicial();

    }

    public void carregarProduto(int i_index) throws Exception {
        oPedidoItem = parentFrame.oPedido.vItem.get(i_index).getCopia();
        index = i_index;

        alteracao = true;

        cnsProduto.setId(oPedidoItem.idProduto);
        cnsProduto.consultar();
        txtPesoTotal.setDouble(oPedidoItem.pesoUnitario);
        txtPrecoVenda.setDouble(oPedidoItem.precoVenda);
        txtQuantidade.setInt(oPedidoItem.quantidade);
        txtValorTotal.setDouble(oPedidoItem.subTotal);
        txtPrecoBanho.setDouble(oPedidoItem.precoBanho);

        cnsProduto.setEnabled(false);

        getEstadoTelaInicial();
    }

    private void carregarProduto() throws Exception {
        oPedidoItem = beanVenda.carregarProduto(cnsProduto.getId());

        txtPesoTotal.setDouble(oPedidoItem.pesoUnitario);
        txtPrecoVenda.setDouble(oPedidoItem.precoVenda);
        txtPrecoBanho.setDouble(oPedidoItem.precoBanho);

        txtQuantidade.requestFocusLater();
    }

    private void atualizaValores() throws Exception {
        if (txtQuantidade.getInt() == 0 && !txtQuantidade.getText().isEmpty()) {
            txtQuantidade.requestFocusLater();
            throw new LBException("Digite uma quantidade");
        } else {
            txtPesoTotal.setDouble(txtQuantidade.getInt() * oPedidoItem.pesoUnitario);
            txtValorTotal.setDouble(txtQuantidade.getInt() * oPedidoItem.precoVenda);
        }

    }

    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lBToolBarPadrao1 = new lbframework.bean.toolBarPadrao.LBToolBarPadrao();
        lBPanel1 = new lbframework.bean.panel.LBPanel();
        lBLabel1 = new lbframework.bean.label.LBLabel();
        cnsProduto = new lbframework.bean.consultaCampo.LBConsultaCampo();
        lBLabel2 = new lbframework.bean.label.LBLabel();
        txtQuantidade = new lbframework.bean.textField.LBTextField();
        txtPrecoVenda = new lbframework.bean.textField.LBTextField();
        lBLabel3 = new lbframework.bean.label.LBLabel();
        lBLabel4 = new lbframework.bean.label.LBLabel();
        txtValorTotal = new lbframework.bean.textField.LBTextField();
        txtPesoTotal = new lbframework.bean.textField.LBTextField();
        lBLabel5 = new lbframework.bean.label.LBLabel();
        lBLabel6 = new lbframework.bean.label.LBLabel();
        txtPrecoBanho = new lbframework.bean.textField.LBTextField();
        lBPanel2 = new lbframework.bean.panel.LBPanel();
        lBButton1 = new lbframework.bean.button.LBButton();
        btnSalvar = new lbframework.bean.button.LBButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Cadastro Pedido Item");
        addInternalFrameListener(new javax.swing.event.InternalFrameListener() {
            public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {
                formInternalFrameClosing(evt);
            }
            public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {
            }
        });

        lBToolBarPadrao1.setRollover(true);
        lBToolBarPadrao1.setVisibleSalvar(true);

        lBLabel1.setText("Produto");

        cnsProduto.setObrigatorio(true);
        cnsProduto.addEventoConsultaCampoListener(new lbframework.bean.consultaCampo.LBEventoConsultaCampoListener() {
            public void abreTelaConsulta(lbframework.bean.consultaCampo.LBEventoConsultaCampo evt) {
                cnsProdutoAbreTelaConsulta(evt);
            }
            public void aposConsulta(lbframework.bean.consultaCampo.LBEventoConsultaCampo evt) {
                cnsProdutoAposConsulta(evt);
            }
        });

        lBLabel2.setText("Quantidade");

        txtQuantidade.setMascara("Decimal 0");
        txtQuantidade.setObrigatorio(true);
        txtQuantidade.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtQuantidadeFocusLost(evt);
            }
        });

        txtPrecoVenda.setEnabled(false);
        txtPrecoVenda.setMascara("Decimal 3");

        lBLabel3.setText("Preço Venda");

        lBLabel4.setText("Valor Total");

        txtValorTotal.setEnabled(false);
        txtValorTotal.setMascara("Decimal 2");

        txtPesoTotal.setEnabled(false);
        txtPesoTotal.setMascara("Decimal 2");

        lBLabel5.setText("Peso Total");

        lBLabel6.setText("Preço Banho");

        txtPrecoBanho.setEnabled(false);
        txtPrecoBanho.setMascara("Decimal 3");

        javax.swing.GroupLayout lBPanel1Layout = new javax.swing.GroupLayout(lBPanel1);
        lBPanel1.setLayout(lBPanel1Layout);
        lBPanel1Layout.setHorizontalGroup(
            lBPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lBPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(lBPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(cnsProduto, javax.swing.GroupLayout.PREFERRED_SIZE, 394, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lBLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(lBPanel1Layout.createSequentialGroup()
                        .addGroup(lBPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lBLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtQuantidade, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(lBPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lBLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtPrecoVenda, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(lBPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lBLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtPrecoBanho, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(lBPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lBLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtPesoTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(lBPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lBLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtValorTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );
        lBPanel1Layout.setVerticalGroup(
            lBPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lBPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lBLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(cnsProduto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(lBPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(lBPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(lBPanel1Layout.createSequentialGroup()
                            .addComponent(lBLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(txtQuantidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(lBPanel1Layout.createSequentialGroup()
                            .addComponent(lBLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(txtPrecoVenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(lBPanel1Layout.createSequentialGroup()
                            .addComponent(lBLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(txtValorTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(lBPanel1Layout.createSequentialGroup()
                        .addComponent(lBLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtPesoTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(lBPanel1Layout.createSequentialGroup()
                        .addComponent(lBLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtPrecoBanho, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(31, Short.MAX_VALUE))
        );

        lBButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/lbframework/img/sair.png"))); // NOI18N
        lBButton1.setText("Sair");
        lBButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                lBButton1ActionPerformed(evt);
            }
        });

        btnSalvar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/lbframework/img/salvar.png"))); // NOI18N
        btnSalvar.setText("Salvar");
        btnSalvar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSalvarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout lBPanel2Layout = new javax.swing.GroupLayout(lBPanel2);
        lBPanel2.setLayout(lBPanel2Layout);
        lBPanel2Layout.setHorizontalGroup(
            lBPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, lBPanel2Layout.createSequentialGroup()
                .addContainerGap(254, Short.MAX_VALUE)
                .addComponent(btnSalvar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lBButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        lBPanel2Layout.setVerticalGroup(
            lBPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lBPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(lBButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(btnSalvar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lBPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lBPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addComponent(lBToolBarPadrao1, javax.swing.GroupLayout.DEFAULT_SIZE, 52, Short.MAX_VALUE)
                        .addGap(374, 374, 374)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(lBToolBarPadrao1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lBPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lBPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void lBButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_lBButton1ActionPerformed
        try {
            verificarAlteracaoTela();
            sair();

        } catch (Exception e) {
            Util.exibirMensagemErro(e, getTitle());
        }
    }//GEN-LAST:event_lBButton1ActionPerformed

    private void btnSalvarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSalvarActionPerformed
        try {
            salvar();

        } catch (Exception e) {
            Util.exibirMensagemErro(e, getTitle());
        }
    }//GEN-LAST:event_btnSalvarActionPerformed

    private void cnsProdutoAbreTelaConsulta(lbframework.bean.consultaCampo.LBEventoConsultaCampo evt) {//GEN-FIRST:event_cnsProdutoAbreTelaConsulta
        try {
            MenuGUI menu = (MenuGUI) mdiFrame;

            if (menu.formProdutoConsulta == null || menu.formProdutoConsulta.isClosed()) {
                menu.formProdutoConsulta = new ProdutoConsultaGUI(mdiFrame);
            }

            menu.formProdutoConsulta.setConsultaCampo(cnsProduto);
            menu.formProdutoConsulta.setVisible(true);

        } catch (Exception ex) {
            Util.exibirMensagemErro(ex, getTitle());
        }

    }//GEN-LAST:event_cnsProdutoAbreTelaConsulta

    private void cnsProdutoAposConsulta(lbframework.bean.consultaCampo.LBEventoConsultaCampo evt) {//GEN-FIRST:event_cnsProdutoAposConsulta
        try {
            carregarProduto();

        } catch (Exception e) {
            Util.exibirMensagemErro(e, getTitle());
        }

    }//GEN-LAST:event_cnsProdutoAposConsulta

    private void txtQuantidadeFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtQuantidadeFocusLost
        try {
            atualizaValores();

        } catch (Exception e) {
            Util.exibirMensagemErro(e, getTitle());
        }

    }//GEN-LAST:event_txtQuantidadeFocusLost

    private void formInternalFrameClosing(javax.swing.event.InternalFrameEvent evt) {//GEN-FIRST:event_formInternalFrameClosing
        try {
            verificarAlteracaoTela();
            sair();

        } catch (Exception e) {
            Util.exibirMensagemErro(e, getTitle());
        }
    }//GEN-LAST:event_formInternalFrameClosing
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private lbframework.bean.button.LBButton btnSalvar;
    private lbframework.bean.consultaCampo.LBConsultaCampo cnsProduto;
    private lbframework.bean.button.LBButton lBButton1;
    private lbframework.bean.label.LBLabel lBLabel1;
    private lbframework.bean.label.LBLabel lBLabel2;
    private lbframework.bean.label.LBLabel lBLabel3;
    private lbframework.bean.label.LBLabel lBLabel4;
    private lbframework.bean.label.LBLabel lBLabel5;
    private lbframework.bean.label.LBLabel lBLabel6;
    private lbframework.bean.panel.LBPanel lBPanel1;
    private lbframework.bean.panel.LBPanel lBPanel2;
    private lbframework.bean.toolBarPadrao.LBToolBarPadrao lBToolBarPadrao1;
    private lbframework.bean.textField.LBTextField txtPesoTotal;
    private lbframework.bean.textField.LBTextField txtPrecoBanho;
    private lbframework.bean.textField.LBTextField txtPrecoVenda;
    private lbframework.bean.textField.LBTextField txtQuantidade;
    private lbframework.bean.textField.LBTextField txtValorTotal;
    // End of variables declaration//GEN-END:variables
}
